// Version7Controller.cpp: implementation of the Version7Controller class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "phsshare.h"
#include "Version7Controller.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

namespace VersionControl
{
	Version7Controller::Version7Controller()
	{
		Version(7);
	}
	
	Version7Controller::~Version7Controller()
	{
		
	}
	
	VolumeGenerator& Version7Controller::CurVolumeGenerator()
	{
		return this->m_VolumeGenerator;
	}
	
	SupportHangerGenerator& Version7Controller::CurSupportHangerGenerator()
	{
		return this->m_SHGenerator;
	}
	
	PartGenerator& Version7Controller::CurPartGenerator()
	{
		return this->m_PartGenerator;
	}
	
	JointGenerator& Version7Controller::CurJointGenerator()
	{
		return this->m_JointGenerator;
	}

	PersistentSortVisitor& Version7Controller::CurPersistentVisitor()
	{
		return this->m_PSVisitor;
	}
	
	void Version7Controller::project(Project* pPrj)
	{
		ASSERT(pPrj);
		ProjectSubObject::project(pPrj);
		m_VolumeGenerator.project(pPrj);
		m_SHGenerator.project(pPrj);
		m_PartGenerator.project(pPrj);
		m_JointGenerator.project(pPrj);
	}
}
